const packageName = require("./package.json").name;
module.exports = {
  // 服务配置
  devServer: {
    port: 10002, //端口号
    //   允许跨域
    headers: {
      "Access-Control-Allow-Origin": "*",
    },
  },
  // webpack 配置
  configureWebpack: {
    output: {
      library: `${packageName}-child`,
        libraryTarget: "umd",
    },
  },
};
